#pragma once

#include "cocos2d.h"
#include "bullet.h"
#include <map>

using namespace cocos2d;

class CBulletMgr
{
public:
	CBulletMgr();
	virtual ~CBulletMgr();
	void Init(CCLayer * pLayer);

	void Create();
	void AddBullet(CBullet* p);
	void Update(const ccTime& dt);

	typedef std::map<int ,CBullet*>::iterator FishIterator;
protected:
	std::map<int ,CBullet*> m_mBulletMgr;
	CCLayer* m_pScene;
	int m_nAutoFishID ;
};